import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import StatisticPage from '../component/statistic/StatisticsPage';
import * as mainActions from '../actions/init';

class StatisticsContainer extends React.Component {

  render() {
    return (
      <StatisticPage
        {...this.props}
      />
    );
  }
}

function mapStateToProps(state) {
  const { folderTree } = state.main;
  return {
    folderTree
  };
}

function mapDispatchToProps(dispatch) {
  return bindActionCreators(mainActions, dispatch);
}

export default connect(mapStateToProps, mapDispatchToProps)(StatisticsContainer);
